package io.xxx.mario.task;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.xxx.mario.common.DateFormats;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TaskReceiver {

    @TableId
    private Long id;

    private Long taskId;

    private ReceiverType receiverType;

    private Long receiverId;

    private String receiverName;

    private Long robotId;

    private String wxId;

    private String deviceId;

    private PushStatus status;

    @JsonFormat(pattern = DateFormats.DEFAULT)
    private LocalDateTime pushTime;

    @JsonFormat(pattern = DateFormats.DEFAULT)
    private LocalDateTime createdTime;

    @JsonFormat(pattern = DateFormats.DEFAULT)
    private LocalDateTime updatedTime;
}
